package com.dudy;

/**
 * author:zjw20
 * date:2016/5/23
 * email:zjw2023@163.com
 * description: 策略模式
 * 将角色中技能从角色中分离出来，通过接口skill组合到role中
 */
public class MainTest {
    public static void main(String[] args) {
        Role role = new MageRole();
        WeaponBehavior weaponBehavior = new MageWeaponBehavior();
        role.setWeaponBehavior(weaponBehavior);
        role.flight();
    }
}
